package com.hopu.aop.proxy.proxy;

public class ComputerTest {

    public static void main(String[] args) {
        //创建被代理者对象
//        IComputerSell miFactory = new MiComputerFactory();
        IPhoneSell miFactory = new MiPhoneFactory();
        //创建代理者对象
        IPhoneSell miShop = new PhoneShop(miFactory);
        //调用代理者方法
        miShop.sellPhone();
    }
}
